home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Textfiles / zines / Happle / happle10.sit.hqx / Happle#10 / Happle Issue#10.rsrc / TEXT_147.txt < prev    next >
Text File  |  1999-06-11  |  8KB  |  188 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. How To Decrypt Hotline Passwords with c
  8.  
  9.   *******************************************************************
  10.   *:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*
  11.   *:::This has been Brought to you by...::::::::::::::::::::::::::::*
  12.   *:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*
  13.   *::::____________::::__::__::__::::______:::______:::________:::::*
  14.   *:::/\  ________ \::/\ \/\ \/\ \::/\  ___\:/\  ___\:/\___  __\::::*
  15.   *:::\ \ \______/\ \:\ \ \ \ \ \ \:\ \ \__/:\ \ \__/_\/__/\ \_/::::*  
  16.   *::::\ \ \:::_:\ \ \:\ \ \ \ \ \ \:\ \  __\:\ \____ \:::\ \ \:::::*
  17.   *:::::\ \ \_/\ \\_\ \:\ \ \_\ \_\ \:\ \ \_/__\/___/\ \:::\ \ \::::*
  18.   *::::::\ \_____  ____\:\ \_________\:\ \_____\ /\_____\:::\ \_\:::*
  19.   *:::::::\/____/\ \___/::\/_________/::\/_____/:\/_____/::::\/_/:::*
  20.   *:::::::::::::\ \_\:::::::::::::::::::::::::::::::::::::::::::::::*
  21.   *::::::::::::::\/_/:::::::::::::::::::::::::LordQwest@yahoo.com:::*
  22.   *::::::::::::::::::::::::::::::::::::::::::::::[Suck Toe Warts]:::* 
  23.   *:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*
  24.   *******************************************************************
  25.                                 5.8.99
  26.  
  27.  
  28. Introduction
  29. ~~~~~~~~~~~~
  30. As most of you probably already know, Hotline is this great program that works like the bulletin board systems in the old days. Except this program lets you connect to any Hotline Server anywhere on the net. So you never have to pay the long distance phone fees that you used to pay when connecting to out-of-state BBS's. And this is completely legal, unlike the other methods of getting around those pesky phone bills.
  31.  
  32. Everything is great. We are all having a wonderful time chatting and trading philes and warez, etc. After you get a little bored with that, you might start thinking "HHmmmmm, I wonder if I could HACK into a Hotline Server?!" The answer is yes and it's been done. It's been done a lot. It's so prevalent that your ten-year-old brother has probably already done it. And there are lots of philes that explain how to do it. One way people do it is to trick an admin into opening a Trojan Horse that will allow you to download the admin's UserData file. This file is what contains the admin's password. But it's not all that simple. The password is encrypted. You can relax because the encryption system is VERY simple. I figured it out in under an hour just by guessing. Many other people have figured it out as well and some of them have written programs that will decrypt the password for you. I wrote one called HotDecrypt a few months ago. You can find a URL for it in the references section of this document. I thought you might like to know how it's done. If you do then take a look at the following source code written in ANSI C. If not, then go away and don't bother me. 
  33.  
  34.  
  35. Source Code
  36. ~~~~~~~~~~~
  37.  
  38. //______Includes_____________________________________________________
  39.  
  40. #include <stdio.h>
  41. #include <string.h>
  42.  
  43. //______Function Declarations________________________________________
  44.  
  45. void   PrintSplash( void );
  46.  
  47. //Decrypts Hotline Passwords found in UserData files
  48.  
  49. void main(void)
  50. {
  51.         char    Pass[16] = "";
  52.         short   counter;
  53.     
  54.         PrintSplash();
  55.         printf("               Written for Happle on The Second Day Of May,1999\n\n");
  56.         printf("Enter the encrypted Hotline password:");
  57.         gets( Pass );
  58.         for( counter = 0; Pass[counter] != 0 ; ++counter)
  59.         {
  60.                     Pass[counter] = Pass[counter] - 255;
  61.                     if ( Pass[counter] < 0 ) Pass[counter] = Pass[counter] * (-1);
  62.         }
  63.         printf("\n\nThe password is: ");
  64.      puts( Pass );
  65. }
  66.  
  67.  
  68. Explanation
  69. ~~~~~~~~~~~
  70. #include <stdio.h>
  71.                         //This includes the standard I/O (Input/Output) header file.
  72.      
  73. #include <string.h>
  74.                         //This includes the string header file so that you can
  75.       //manipulate strings.
  76.  
  77. void   PrintSplash( void );
  78.                         //This declares a routine that prints an ascii drawing on the
  79.       //screen.
  80.       //Don't bother looking for it because I didn't include it.
  81.  
  82. void main(void)
  83.                         //If you don't know what this is, then you have probably never
  84.       //programmed before and should read up on it.
  85. {
  86.  
  87.      char    Pass[16] = "";
  88.                         //This creates a 16 character array to store the password in.
  89.  
  90.         short   counter;
  91.          //This creates a counter that is used in the 'for' loop.
  92.  
  93.         PrintSplash();
  94.                         //This is a routine that prints an ascii drawing to the screen.
  95.       //It's not important so I didn't include it.
  96.  
  97.         printf("               Written for Happle on The Second Day Of May,1999\n\n");
  98.       //Writes the text in quotes to the screen.
  99.  
  100.         printf("Enter the encrypted Hotline password:");
  101.       //Prompts the user for the encrypted password from the UserData
  102.       //file.
  103.  
  104.         gets( Pass );
  105.       //Reads the input from the terminal (Screen) and puts it into
  106.       //the character array called 'Pass'. Anything over 16 characters
  107.       //will be lost. If you want to decrypt larger strings change the
  108.       //16 in this line 'char    Pass[16] = "";' to the desired
  109.       //length.
  110.  
  111.         for( counter = 0; Pass[counter] != 0 ; ++counter)
  112.       //This 'for' loop will execute until it reaches a NULL character
  113.       //('\0') in the character array.
  114.         {
  115.                     Pass[counter] = Pass[counter] - 255;
  116.       //Each time the loop executes, this line will decrypt the next 
  117.       //character by subtracting 255 from the ASCII value of the
  118.       //encrypted character.
  119.  
  120.                     if ( Pass[counter] < 0 ) Pass[counter] = Pass[counter] * (-1);
  121.       //If the result of the previous operation is less then zero,
  122.       //this line will get the absolute value of the result by
  123.       //multiplying it by -1.
  124.         }
  125.  
  126.         printf("\n\nThe password is: ");
  127.       //This prints the text that is in quotes to the screen. '\n'
  128.       //means new line.
  129.  
  130.      puts( Pass );
  131.       //This prints the decrypted password to the screen.
  132.  
  133. }
  134.  
  135.  
  136. Conclusion
  137. ~~~~~~~~~~
  138. If there is anything you don't understand try buying a book about c programming or renting one from your local library. I recommend "The C Programming Language" by Brian W. Kerrighan & Dennis M. Ritchie. It's written by the creator of C, Dennis Ritchie, so he must know what he's talking about. There are also a lot of philes on hotline and on the net that can teach you the basics of C.
  139.  
  140. I have compiled the program and included it as - "Hotline Password Decrypt"
  141.  
  142. I hope you learned something from this...
  143.  
  144. <Qwest>
  145.  
  146.  
  147. References
  148. ~~~~~~~~~~
  149. Hotline is available at:
  150. http://www.hotlinesw.com
  151.  
  152. HotDecrypt is available at:
  153. http://www.geocities.com/SiliconValley/Circuit/1924/HotDecrypt1.068k.sit.hqx
  154. http://www.geocities.com/SiliconValley/Circuit/1924/HotDecrypt1.0FAT.sit.hqx
  155. http://www.geocities.com/SiliconValley/Circuit/1924/HotDecrypt1.0PPC.sit.hqx
  156.  
  157. Or at:
  158. http://freaky.staticusers.net/cracking/HotDecrypt1.068k.sit.hqx
  159. http://freaky.staticusers.net/cracking/HotDecrypt1.0FAT.sit.hqx
  160. http://freaky.staticusers.net/cracking/HotDecrypt1.0PPC.sit.hqx
  161.  
  162. The C Programming Language
  163. by Brian W. Kerrighan & Dennis M. Ritchie
  164. Published By Prentice-Hall
  165. Copyright ¬© 1978 by Bell Telephone Laboratories
  166. ISBN 0-13-110163-3
  167.  
  168.  
  169. End of File
  170. ~~~~~~~~~~~
  171.  
  172.                      %%%                           %%%                                            
  173.                      %%           %%                %%                                            
  174.                      %%           %%                %%                                            
  175.                      %%    %%%   %%%%  %%  %%  %%   %%                                            
  176.                      %%   %%  %   %%   %%  %%  %%   %%                                            
  177.                      %%   %%%     %%   %%  %%  %%   %%                                            
  178.                      %%    %%%    %%   %%  %%  %%   %%                                            
  179.                      %%     %%%   %%   %%  %%  %%   %%                                            
  180.                      %%   %  %%   %%   %%  %%  %    %%                                            
  181.                      %%    %%%     %%  %%%%%%%%     %%                                            
  182.                      %%%                           %%%                 
  183.                           S  O  F  T  W  A  R  E  
  184.  
  185.             http://www.geocities.com/SiliconValley/Circuit/1924/
  186.                   http://members.tripod.com/sucktoewarts/
  187.  
  188.